package com.sqx.modules.bidding.controller;

import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.bidding.entity.HelpBidding;
import com.sqx.modules.bidding.service.HelpBiddingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.java.Log;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(value = "报价记录", tags = {"报价记录"})
@RequestMapping(value = "/admin/HelpBidding/")
public class AdminHelpBiddingController {
    @Autowired
    private HelpBiddingService biddingService;

    @ApiOperation("根据订单id获取报价记录")
    @GetMapping("getBiddingListByOrderId")
    public Result getBiddingListByOrderId(Long id){
        return Result.success().put("data", biddingService.getOfferUserList(id,null));
    }
}
